﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;

namespace PFAGame
{
    class Heal : ALoot
    {
        Texture2D tmpTex;

        private float healValue = 25f;

        public override void init()
        {
            base.init();
            obj = AObject.e_object.HEAL;
            tmpTex = ScreenManager.Singleton.Game.Content.Load<Texture2D>("heart");
        }

        protected override void applyBuff(APlayer player)
        {
            base.applyBuff(player);
            player.receiveHeal(healValue);
            GameplayScreen.Singleton.DeleteLootList.Add(this);
        }

        public override void draw(GameTime gameTime, Camera camera)
        {
            base.draw(gameTime, camera);
            ScreenManager.Singleton.SpriteBatch.Draw(tmpTex, displayRectangle, Color.White);
        }
    }
}
